﻿<Window x:Class="_1.CountriesAndTownsSimple.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">

    <Grid x:Name="GridMain">
        <Label Content="Country:" Height="28" HorizontalAlignment="Left" 
               Margin="21,12,0,0" Name="labelCountryName" VerticalAlignment="Top" />
        <Label Content="Language:" Height="28" HorizontalAlignment="Left" 
               Margin="12,46,0,0" Name="labelCountryLanguage" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="82,12,0,0" 
                 Name="textBoxCountryName" VerticalAlignment="Top" Width="120" 
                 Text="{Binding Path=Name}"/>
        <TextBox Height="23" HorizontalAlignment="Left" Margin="82,46,0,0" 
                 Name="textBoxCountryLanguage" VerticalAlignment="Top" Width="120" 
                 Text="{Binding Path=Language}"/>
        <Button Content="&lt;" Height="23" HorizontalAlignment="Left" 
                Margin="82,75,0,0" Name="buttonCountryPrevious" VerticalAlignment="Top" Width="50" Click="buttonCountryPrevious_Click" />
        <Button Content="&gt;" Height="23" HorizontalAlignment="Right" 
                Margin="0,75,310,0" Name="buttonCountryNext" VerticalAlignment="Top" Width="50" Click="buttonCountryNext_Click" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="82,115,0,0" 
                 Name="textBoxTownName" VerticalAlignment="Top" Width="120"
                 Text="{Binding Path=Towns/TownName}"/>
        <Label Content="Town:" Height="28" HorizontalAlignment="Left" 
               Margin="21,115,0,0" Name="labelTownName" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="82,144,0,0" Name="textBoxPopulation" 
                 Text="{Binding Path=Towns/Population}" VerticalAlignment="Top" Width="120" />
        <Label Content="Population:" Height="28" HorizontalAlignment="Left" 
               Margin="6,144,0,0" Name="labelPopulation" VerticalAlignment="Top" />
        <Button Content="&lt;" Height="23" HorizontalAlignment="Left" 
                Margin="82,173,0,0" Name="buttonTownPrevious" VerticalAlignment="Top" Width="50" Click="buttonTownPrevious_Click" />
        <Button Content="&gt;" Height="23" HorizontalAlignment="Right" 
                Margin="0,173,310,0" Name="buttonTownNext" VerticalAlignment="Top" Width="50" Click="buttonTownNext_Click" />
        <Image Height="66" HorizontalAlignment="Left" Margin="233,8,0,0" Name="image" 
               Stretch="Fill" VerticalAlignment="Top" Width="131" 
               Source="{Binding Image}" />
    </Grid>
</Window>
